<?php
/* [DoYouHaoBaby!] (C)Dianniu From 2010.
   this($)*/

!defined('DYHB_PATH') && exit;

class TemplateGtkGladeWidgetProperty{

	private $_sName;
	private $_sValue;
	private $_arrAttributes=array();

	public function __construct($sName,$sValue){
		A::STRING($sName);
		A::STRING($sValue);
		$this->_sName=$sName;
		$this->_sValue=$sValue;
	}

	public function getName(){
		return $this->_sName;
	}

	public function getValue(){
		return $this->_sValue;
	}

	public function set($sWhat,$sValue){
		A::STRING($sWhat);
		A::STRING($sValue);
		$oldValue=isset($this->_arrAttributes[$sWhat])?$this->_arrAttributes[$sWhat]:null;
		$this->_arrAttributes[$sWhat]=$sValue;
		return $oldValue;
	}

	public function get($sWhat){
		return isset($this->_arrAttributes[$sWhat])?$this->_arrAttributes[$sWhat]:null;
	}

}
